package com.shrct.businessprocess.budget

import com.shrct.businessprocess.project.RCProject

class BudgetType{

	private RCBudgetCategory budgetCategory;
	private String typeid;
	private String name
	private Boolean _isSingleValued = true
	private (RCProject)=>RCBudget creator = null
	
	new(String typeid,RCBudgetCategory budgetCategory,String name,Boolean _isSingleValued){
		this.typeid = typeid
		this.budgetCategory = budgetCategory
		this.name = name
		this._isSingleValued = _isSingleValued
	}

	new(String typeid,RCBudgetCategory budgetCategory,String name,Boolean _isSingleValued,(RCProject)=>RCBudget creator){
		this.typeid = typeid
		this.budgetCategory = budgetCategory
		this.name = name
		this._isSingleValued = _isSingleValued
		this.creator = creator
	}
	
	def getBudgetCategory(){
		budgetCategory
	}
	
	def String getName(){
		name
	}
	
	def String getTypeid(){
		typeid
	}
	
	def Boolean getIsSingleValued(){
		_isSingleValued
	}
	
	def (RCProject)=>RCBudget getCreator(){
		creator
	}
	
	def Boolean canCreateByDefault(){
		creator != null
	}
}